//
//  AuthorizationUtil.h
//  CheTuoTuo
//
//  Created by Houge on 2021/1/23.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
#import <Contacts/Contacts.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^AuthorizationSuccessBlock)(void);

@interface AuthorizationUtil : NSObject

/// 通讯录权限
+ (void)checkAddressBookAuthorization:(AuthorizationSuccessBlock)successBlock;

/// 定位权限
+ (void)checkUserLocationAuthorization:(AuthorizationSuccessBlock)successBlock;

/// 相机权限
+ (void)checkCamareAuthorization:(AuthorizationSuccessBlock)successBlock;

/// 相册权限
+ (void)checkPhotoLibraryAuthorization:(AuthorizationSuccessBlock)successBlock;

/// 麦克风权限
+ (void)checkMicrophoneAuthorization:(AuthorizationSuccessBlock)successBlock;

@end

NS_ASSUME_NONNULL_END
